package ControlLayer;



import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * The test class DVDCtrTest.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class DVDCtrTest
{
private ControlLayer.DVDCtr dvdc1;
    /**
     * Default constructor for test class DVDCtrTest
     */
    public DVDCtrTest()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
        dvdc1 = new ControlLayer.DVDCtr();
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    @After
    public void tearDown()
    {
    }

    @Test
    public void testAddDVD()
    {
        
        dvdc1.createDVD("300", "Michael Bay", "13/07/2008");
    }

    @Test
    public void testCreateCopy()
    {
        
        dvdc1.createDVD("300", "Michael Bay", "13/07/2008");
        dvdc1.createCopy(1, "qwe", 123);
    }

    
    @Test
    public void testFindDVD()
    {
       
        dvdc1.createDVD("300", "Michael Bay", "13/07/2008");
        dvdc1.createCopy(1, "18/07/2008", 900);
        
        dvdc1.getDVD(1);
    }

    @Test
    public void testDeleteDVD()
    {
        
        dvdc1.createDVD("300", "Michael Bay", "13/07/2008");
        dvdc1.deleteDVD(1);
    }
}





